package com.lz.gmall.item;

import com.lz.gmall.anno.EnableThreadPoolConfig;
import com.lz.gmall.cache.anno.EnableRedissonClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableFeignClients(basePackages = {"com.lz.gamll.feign.product","com.lz.gamll.feign.search"})
@EnableRedissonClient //自定义注解，开启基于redisson的读缓存
@EnableThreadPoolConfig //自定义注解，注入自定义线程池对象
public class ItemApplication {
    public static void main(String[] args) {
        SpringApplication.run(ItemApplication.class,args);
    }
}
